// index.js
// 获取应用实例
const app = getApp()

Page({
  data: {
    notice: '',
  },
  seeNotice() {
    wx.navigateTo({
      url: '/pages/tzgg/tzgg',
    })
  },
  goMdxx() {
    wx.navigateTo({
      url: '/pages/wdxx/wdxx'
    })
  },
  onLoad() {
    app.$api.get('/qb/unauth/userwx/getNotice').then(res => {
      let notice=res.data.map(val => {
        return val.notice_title
      }).join(`；   `)
      this.setData({
        scrollable:notice.length>20,
        notice
      })
    })
  },
  onShareAppMessage: function () {

  }
})